﻿@ModelType SistemaINCA.Models.ViewModels.EditFechasAEModel
    
<script src="@Url.Content("~/Scripts/Editor_Calendar_HookUp.js")"  type="text/javascript"></script>

<div id="div-loading">
    <img src="@Url.Content("~/Content/loading.gif")" alt="Por favor espere..."/><span> Validando e Intentando guardar los cambios...</span>
</div>

@If ViewBag.EditMode Then
    Using (Ajax.BeginForm("POST_Save_Changes_Fechas_AE", "AEscolar", New AjaxOptions With {.HttpMethod = "Post", .UpdateTargetId = "EditFechasAEDialog", .LoadingElementId = "div-loading"}))
        @Html.ValidationSummary()
        @Html.EditorForModel()
    End Using
Else
Using (Ajax.BeginForm("POST_Create_New_AE", "AEscolar", New AjaxOptions With {.HttpMethod = "Post", .UpdateTargetId = "NewAEDialog", .LoadingElementId = "div-loading"}))
        @Html.ValidationSummary()
        @Html.EditorForModel()
    End Using
End If



    
 
    


